import request from '@/utils/request'

// 订单分页列表
export function pageHandOrder(query) {
  return request({
    url: '/order/projectHandOrder/pageHandOrder',
    method: 'get',
    params: query
  })
}

// 订单统计
export function statHandOrder(query) {
  return request({
    url: '/order/projectHandOrder/statHandOrder',
    method: 'get',
    params: query
  })
}

// 获取订单
export function getHandOrder(handOrderId) {
  return request({
    url: '/order/projectHandOrder/getHandOrder',
    method: 'get',
    params: { handOrderId }
  })
}

// 保存订单
export function saveHandOrder(data) {
  return request({
    url: '/order/projectHandOrder/saveHandOrder',
    method: 'post',
    data: data
  })
}

// 提交订单
export function doSubmitHandOrder(handOrderId) {
  return request({
    url: '/order/projectHandOrder/doSubmitHandOrder',
    method: 'post',
    data: { handOrderId }
  })
}

// 删除订单
export function deleteHandOrder(handOrderIds) {
  return request({
    url: '/order/projectHandOrder/deleteHandOrder',
    method: 'post',
    data: { handOrderIds }
  })
}
